package com.quartz.demo.task;

import org.quartz.*;

import java.util.Date;

public class MyJob implements Job {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("==============我的工作："+ new Date());
        JobDetail jobDetail = context.getJobDetail();

        JobDataMap jobDataMap = jobDetail.getJobDataMap();

        Trigger trigger = context.getTrigger();
        JobDataMap jobDataMap1 = trigger.getJobDataMap();


    }
}
